package com.andong.service;

import com.andong.domain.dto.UpdatePasswordDTO;
import com.andong.domain.entity.Coach;
import com.andong.domain.pojo.PageResult;
import com.andong.domain.pojo.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;

/**
* @author 王海云
* @description 针对表【coach(教练信息表)】的数据库操作Service
* @createDate 2024-01-03 17:57:41
*/
public interface CoachService extends IService<Coach> {
    Result selectById(Long id);

    Result updatePasswordByCode(UpdatePasswordDTO dto) throws Exception;

    Result updatePasswordByPre(UpdatePasswordDTO dto) throws Exception;

    PageResult queryList(Integer page, Integer pageSize, String name, Integer gender, Integer licenseType, LocalDate begin, LocalDate end);

    void updateImage(String url);

    Result updatePhone(String phone, String code);

    Result updateStatus(Long id, Integer status);

    Result delete(Long id);

    Result insert(Coach coach) throws Exception;
}
